import request from '@/utils/request'
// 获取医生列表
export function getDoctorList(params) {
    return request({
        url: `/register/doctorIndex`,
        method: "GET",
        params
    })
}

// 获取挂号号码
export function getNumber(params) {
    return request({
        url: `/register/getNumber`,
        method: "GET",
        params
    })
}

// 获取门诊号
export function getPatientNo(params) {
    return request({
        url: `/register/getPatientNo`,
        method: "GET",
        params
    })
}

// 获取门诊号
export function handelSave(params) {
    return request({
        url: `/register/save`,
        method: "POST",
        params
    })
}

// 获取挂号列表
export function getList(params) {
    return request({
        url: `/register/index`,
        method: "GET",
        params
    })
}

// 获取患者信息
export function getProfileList(params) {
    return request({
        url: `/member/profile`,
        method: "GET",
        params
    })
}

// 获取患者信息
export function getSetRegistration(params) {
    return request({
        url: `/register_conf/feeIndex`,
        method: "GET",
        params
    })
}

// 保存患者信息
export function handelMemberSave(params) {
    return request({
        url: `/member/save`,
        method: "POST",
        params
    })
}

// 获取收费列表
export function getFeeIndex(params) {
    return request({
        url: `/clinic_fee/feeIndex`,
        method: "GET",
        params
    })
}

// 获取处方详细信息
export function getFeeItem(params) {
    return request({
        url: `/clinic_fee/feeItem`,
        method: "GET",
        params
    })
}

//办理入院
export function create(params) {
    return request({
        url: `/hospitalization/create`,
        method: "POST",
        params
    })
}


//数据字典
export function getdictIndex(params) {
    return request({
        url: `/dict_data/dictIndex`,
        method: "GET",
        params
    })
}
//获取疾病诊断数据字典
export function getgetDiseaseDict(params) {
    return request({
        url: `/clinic_doctor/getDiseasePageDict`,
        method: "GET",
        params
    })
}
//获取住院病人列表(医生和护士)
export function getHospitalMember(params) {
    return request({
        url: `/hospitalization/getHospitalMember`,
        method: "GET",
        params
    })
}

//修改挂号状态
export function getFeeStatus(params) {
    return request({
        url: `/register_conf/feeStatus`,
        method: "POST",
        params
    })
}

//删除挂号设置
export function getFeeDel(params) {
    return request({
        url: `/register_conf/feeDel`,
        method: "POST",
        params
    })
}


//获取用户医保信息
export function getGetInfo(params) {
    return request({
        url: `/member/getInfo`,
        method: "GET",
        params
    })
}
//医保下载接口
export function downCatelog(params) {
    return request({
        url: `ybh/downCatelog`,
        method: "GET",
        params
    })
}
//医保下载接口1312 接口
export function queryHilist(params) {
    return request({
        url: `ybh/queryHilist`,
        method: "GET",
        params
    })
}
//医保下载接口1316 接口
export function QueryMedinsHilistMapByPage(params) {
    return request({
        url: `ybh/QueryMedinsHilistMapByPage`,
        method: "GET",
        params
    })
}
//医保下载接口1317 接口
export function queryMedListMapByPage(params) {
    return request({
        url: `ybh/queryMedListMapByPage`,
        method: "GET",
        params
    })
}
//医保下载接口1318 接口
export function queryLmtprcByPageClient(params) {
    return request({
        url: `ybh/queryLmtprcByPageClient`,
        method: "GET",
        params
    })
}
//医保下载接口1319 接口
export function querysetlListInfoClient(params) {
    return request({
        url: `ybh/querysetlListInfoClient`,
        method: "GET",
        params
    })
}


//上传
export function uploadFile(params) {
    return request({
        url: `/upload/file`,
        method: "POST",
        params
    })
}

//上传
export function ybhUploadCateLog(params) {
    return request({
        url: `ybh/uploadCateLog`,
        method: "POST",
        params
    })
}

export function getRegisterPrintInvoice(params) {
    return request({
        url: `register/getPrintInvoice`,
        method: "GET",
        params
    })
}


export function getPrintInvoice(params) {
    return request({
        url: `clinic_fee/getPrintInvoice`,
        method: "GET",
        params
    })
}

//上传 127.0.0.1:9503/register/getPrintInvoice?id=478
export function getPrintInvoiceRegister(params) {
    return request({
        url: `register/getPrintInvoice`,
        method: "GET",
        params
    })
}